package com.example.front.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 *严重等级
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class LevelCreateDto {

    @NotBlank(message = "名称不能为空")
    private String name;
    @NotNull(message = "持续时间不能为空")
    private int duration;//持续时间

}
